package com.wxisme.ssm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.wxisme.ssm.mapper.FriendMapper;
import com.wxisme.ssm.po.Friend;
import com.wxisme.ssm.service.FriendService;

/**
 *FriendService
 *@author wxisme
 *@time 2015-10-3 下午12:17:59
 */
public class FriendServiceImpl implements FriendService {
	
	@Autowired
	private FriendMapper friendMapper;
	
	@Override
	public void insertFriend(Friend friend) throws Exception {
		friendMapper.insertFriend(friend);
	}
	
	
	@Override
	public List<Friend> selectFriends(String username) throws Exception {
		return friendMapper.selectFriends(username);
	}
	
	@Override
	public void deleteFriend(Friend friend) throws Exception {
		friendMapper.deleteFriend(friend);
	}
}
